package com.ruoyi.blog.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 博客对象 t_blog
 * 
 * @author yang
 * @date 2021-11-15
 */
public class TBlog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long blogId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long authorId;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 文章正文id */
    @Excel(name = "文章正文id")
    private Long contentId;

    /** 分类id */
    @Excel(name = "分类id")
    private Long categoryId;

    /** 简介 */
    @Excel(name = "简介")
    private String introduction;

    /** 封面图片地址 */
    @Excel(name = "封面图片地址")
    private String coverImgUrl;

    /** 类型状态（0正常 1停用） */
    @Excel(name = "类型状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 是否热门（0表示普通，1表示热门） */
    @Excel(name = "是否热门", readConverterExp = "0=表示普通，1表示热门")
    private String isHot;

    /** 收藏数 */
    @Excel(name = "收藏数")
    private Long likeCount;

    public void setBlogId(Long blogId) 
    {
        this.blogId = blogId;
    }

    public Long getBlogId() 
    {
        return blogId;
    }
    public void setAuthorId(Long authorId) 
    {
        this.authorId = authorId;
    }

    public Long getAuthorId() 
    {
        return authorId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setIntroduction(String introduction) 
    {
        this.introduction = introduction;
    }

    public String getIntroduction() 
    {
        return introduction;
    }
    public void setCoverImgUrl(String coverImgUrl) 
    {
        this.coverImgUrl = coverImgUrl;
    }

    public String getCoverImgUrl() 
    {
        return coverImgUrl;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setIsHot(String isHot) 
    {
        this.isHot = isHot;
    }

    public String getIsHot() 
    {
        return isHot;
    }
    public void setLikeCount(Long likeCount) 
    {
        this.likeCount = likeCount;
    }

    public Long getLikeCount() 
    {
        return likeCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("blogId", getBlogId())
            .append("authorId", getAuthorId())
            .append("title", getTitle())
            .append("contentId", getContentId())
            .append("categoryId", getCategoryId())
            .append("introduction", getIntroduction())
            .append("coverImgUrl", getCoverImgUrl())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("isHot", getIsHot())
            .append("createBy", getCreateBy())
            .append("likeCount", getLikeCount())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
